package com.lxmes.hr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.hr.mapper.NcPieceWageMapper;
import com.lxmes.hr.domain.NcPieceWage;
import com.lxmes.hr.service.INcPieceWageService;

/**
 * 计件工资核算Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class NcPieceWageServiceImpl implements INcPieceWageService 
{
    @Autowired
    private NcPieceWageMapper ncPieceWageMapper;

    /**
     * 查询计件工资核算
     * 
     * @param id 计件工资核算主键
     * @return 计件工资核算
     */
    @Override
    public NcPieceWage selectNcPieceWageById(Long id)
    {
        return ncPieceWageMapper.selectNcPieceWageById(id);
    }

    /**
     * 查询计件工资核算列表
     * 
     * @param ncPieceWage 计件工资核算
     * @return 计件工资核算
     */
    @Override
    public List<NcPieceWage> selectNcPieceWageList(NcPieceWage ncPieceWage)
    {
        return ncPieceWageMapper.selectNcPieceWageList(ncPieceWage);
    }

    /**
     * 新增计件工资核算
     * 
     * @param ncPieceWage 计件工资核算
     * @return 结果
     */
    @Override
    public int insertNcPieceWage(NcPieceWage ncPieceWage)
    {
        return ncPieceWageMapper.insertNcPieceWage(ncPieceWage);
    }

    /**
     * 修改计件工资核算
     * 
     * @param ncPieceWage 计件工资核算
     * @return 结果
     */
    @Override
    public int updateNcPieceWage(NcPieceWage ncPieceWage)
    {
        return ncPieceWageMapper.updateNcPieceWage(ncPieceWage);
    }

    /**
     * 批量删除计件工资核算
     * 
     * @param ids 需要删除的计件工资核算主键
     * @return 结果
     */
    @Override
    public int deleteNcPieceWageByIds(Long[] ids)
    {
        return ncPieceWageMapper.deleteNcPieceWageByIds(ids);
    }

    /**
     * 删除计件工资核算信息
     * 
     * @param id 计件工资核算主键
     * @return 结果
     */
    @Override
    public int deleteNcPieceWageById(Long id)
    {
        return ncPieceWageMapper.deleteNcPieceWageById(id);
    }
}
